package main
import "fmt"

func modifyArray1(arr1 [3]int) {
	// 将传入数组参数的第一个下标的值修改为100
	arr1[0] = 100
	fmt.Println(arr1)
}

func modifyArray2(arr2 [3][2]int) {
	// 将传入数组参数的[1][0]的值修改为100
	arr2[1][0] = 100
	fmt.Println(arr2)
}

func main(){
	arr1 := [3]int{10,20,30}
	modifyArray1(arr1)

	arr2 := [3][2]int{
		[2]int{10,20},
		[2]int{10,20},
		[2]int{10,20},
	}
	modifyArray2(arr2)
}
